# conding = utf-8
from selenium.webdriver.common.by import By

leftmenu_sys = By.XPATH, "//li//span[text()='系统管理']"
leftmenu = By.XPATH, "/html/body/div[1]/section/aside/div/ul/li[10]/ul/li[2]"

#查询输入第一个框
role_add = By.XPATH,"//input[@placeholder='输入登录名称模糊查询']"
#点击重置
reset_select = By.XPATH,"//button[@class='ant-btn']"
#点击查询
check_select = By.XPATH,"//button[@class='ant-btn ant-btn-primary' and contains(., '查 询')]"
#第二个框
two_select = By.XPATH,"//input[@placeholder='输入用户姓名模糊查询']"
#查询断言
query_select = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[4]"




#批量操作
#打钩
tick_batch = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[1]/span/label"
#批量
operate_batch = By.XPATH,"//button[@class='ant-btn ant-dropdown-trigger']"
#禁用
disable_batch = By.XPATH,"/html/body/div[4]/div/div/ul/li[3]"
#启用
enable_batch = By.XPATH,"/html/body/div[4]/div/div/ul/li[2]/i"
#确定
sure_batch = By.XPATH,"//div[contains(@class, 'ant-modal-confirm-btns')]//button[contains(@class, 'ant-btn-primary')]"

#新增
newly_added = By.XPATH,"//div[@class='table-operator']/button[1]"
#输入第一个输入框
first_added = By.XPATH,"//input[@placeholder='请输入登录名称']"
#第二个输入框
the_added = By.XPATH,"//input[@placeholder='请输入用户姓名']"
#第三个框
third_added = By.XPATH,"//div[contains(text(), '选择角色')]"
#点击确定
sure_added = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[3]/div/button[2]"
#关闭
close_added = By.XPATH,"//button[span='关 闭']"
#结果
result_added = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[4]"



#编辑
edit_edit = By.XPATH,"//tbody[@class='ant-table-tbody']/tr[1]/td[3]/span/a[1]"
#输入角色名称
first_edit = By.XPATH,"//input[@placeholder='请输入用户姓名']"
#点击确定
sure_edit = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[3]/div/button[2]"
#关闭
close_edit = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[3]/div/button[1]"
#断言
assertion_edit = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[5]"



#重置密码
reset_password = By.XPATH,"//tbody[@class='ant-table-tbody']/tr[1]/td[3]/span/a[3]"
#确定
confirm_password = By.XPATH,"//div[@class='ant-popover-inner-content']/div[2]/button[2]"
#断言
assert_password = By.XPATH,"/html/body/div[5]/span/div/div/div/span"


#删除
delete_delete = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[3]/span/a[2]"
#单击确定
click_delect = By.XPATH,"//div[@class='ant-popover-inner-content']/div[2]/button[2]"
